#include <sys_config.h>
#ifdef AUDIO_DESCRIPTION_SUPPORT

#if 0
#define AD_DEBUG(fmt, arg...) libc_printf(fmt, ##arg)
#else
#define AD_DEBUG(...)	do{} while(0)
#endif

/*
 * @STATUS:   AD valid(1) or invalid(0)
 * @AD_TYPE:  AD type, AD_MSG_TYPE_RECEIVER_MIX or AD_MSG_TYPE_BOARDCASTER_MIX
 * @AD_LANG:  AD language
 */
#define AD_MSG_TYPE_RECEIVER_MIX		0
#define AD_MSG_TYPE_BOARDCASTER_MIX		1

#define AD_MSG_PARAM(STATUS, AD_TYPE, AD_LANG) \
	((((STATUS) & 0xFF) << 24) | (((AD_TYPE) & 0xFF) << 16) | ((AD_LANG) & 0xFFFF))
#define AD_MSG_STATUS(MSG_PARAM)	(((MSG_PARAM) >> 24) & 0XFF)
#define AD_MSG_TYPE(MSG_PARAM) 		(((MSG_PARAM) >> 16) & 0XFF)
#define AD_MSG_LANG(MSG_PARAM)	 	((MSG_PARAM) & 0XFFFF)


extern int aud_desc_select(UINT16 audCnt, UINT16 *audPIDArray, UINT16 *audLangArray,
						   UINT8 *audTypeArray, UINT16 mainAudIdx, BOOL notify);
extern void aud_desc_show_hint(UINT32 ad_msg);
extern void win_popup_ad_setting(void);

#endif /* AUDIO_DESCRIPTION_SUPPORT */

